#include "Logger.h"

#include <iostream>
using namespace std;

Logger* Logger::instance = 0;

Logger* Logger::getInstance(){
	if(instance == 0){
		instance = new Logger();
	}
	return instance;
}

void Logger::startLogTime()
{
	cout<<"Logger: start logging time..."<<endl;
	timer.initTimer();
}

void Logger::startLogTime( char* message )
{
	cout<<"Logger: start logging time["<<message<<"]..."<<endl;
	timer.initTimer();
}
void Logger::endLogTime()
{
	cout<<"Logger: time elapsed:"<<timer.getTime()<<"ms"<<endl;
}

void Logger::logMessage( char* message )
{
	cout<<"Logger: ["<<message<<"]..."<<endl;
}